const express = require('express')

const router = express.Router()

const {list, adminLogin, adminAdd, userStatus, userEdit, userDel} = require('../../../controller/user')

router.get('/list', list)

router.post('/login', adminLogin)

router.post('/add', adminAdd)

router.put('/status/:id', userStatus)

router.put('/edit/:id', userEdit)

router.delete('/del/:id', userDel)

module.exports = router